<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>键盘移动</title>
</head>
<style>
#box1{
    width: 100px;
    height: 100px;
    background-color: red;
    position: absolute;
    top: 10px;
    left: 10px;
    
}
</style>
<script src="function.js" type="text/javaScript"></script>
<body>
    <div id="box1"></div>
</body>
</html>